import Mock from 'mockjs'

const data = {
	"target": ["screen1"],
	"server": "../../static/test/",
	"switch": [{
				"label": "个人",
				"key": "person",
				"marquee|2-5": [{
					"key": "@word()",
					"label": "@ctitle(5,20)",
					"memo": "@cparagraph()",
					"img|1": ['birthday.png','celebration.png','migration.png','recruitment.png']
				}]
			},{
				"label": "企业",
				"key": "enterprise",
				"marquee|2-5": [{
					"key": "@word()",
					"label": "@ctitle(5,20)",
					"memo": "@cparagraph()",
					"img|1": ['birthday.png','celebration.png','migration.png','recruitment.png']
				}]
			}],
	"voice": {
		"label": "语音",
		"key": "sound",
		"sounds|2-5": [{
			"key": "@word()",
			"sound": "@word()",
			"text": "@cword()",
			"img|1": ['birthday.png','celebration.png','migration.png','recruitment.png']
		}]
	}
}

const throwResult = {
	result: Mock.Random.boolean() ? 1: 0, 
	message: ""
}

const area = [
	{value: '0',name: 'CBD',img:'../../static/test/CBD.jpg'},
	{value: '1',name: '学校',img:'../../static/test/school.jpg'},
	{value: '2',name: '居民区',img:'../../static/test/residence.jpg'},
	{value: '3',name: '电影院',img:'../../static/test/cinema.jpg'}
]

export {data,throwResult,area}
